//
//  MDHHTTPRequest.h
//  MDHPT
//
//  Created by 高得华 on 2019/4/23.
//  Copyright © 2019年 高得华. All rights reserved.
//  网络服务层 - 请求

#import <Foundation/Foundation.h>
#import "MDHURLParameters.h"
#import "MDHRACExtension.h"

NS_ASSUME_NONNULL_BEGIN

@interface MDHHTTPRequest : NSObject

//MARK: - ==== 方法
/**
 获取请求类
 @param parameters  参数模型
 @return 请求类
 */
+ (instancetype)requestWithParameters:(MDHURLParameters *)parameters;

/// 请求参数
@property (nonatomic, readonly, strong) MDHURLParameters * urlParameters;

@end

/// MDHHTTPRequest的分类
@interface MDHHTTPRequest (MHHTTPService)

/// 入队
- (RACSignal *)enqueueResultClass:(Class /*subclass of MDHPTModel*/)resultClass;

/// 入队 - Model对应的字符串
- (RACSignal *)enqueueResultClassStr:(NSString */*subclass of MDHPTModel*/)resultClass;

@end


NS_ASSUME_NONNULL_END
